package com.shunde.xunjian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * @author shantaoke
 * @description ps_line
 * @date 2022-03-05
 */
@Data
public class PsLine implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    /**
     * objectid
     */
    private Integer objectid;

    /**
     * zone_code
     */
    private String zoneCode;

    /**
     * zone_name
     */
    private String zoneName;

    /**
     * fromid
     */
    private Integer fromid;

    /**
     * fromsurveyno
     */
    private String fromsurveyno;

    /**
     * to_code
     */
    private String toCode;

    /**
     * to_name
     */
    private String toName;

    /**
     * toid
     */
    private Integer toid;

    /**
     * tosurveyno
     */
    private String tosurveyno;

    /**
     * linktype
     */
    private String linktype;

    /**
     * subtype
     */
    private String subtype;

    /**
     * propertytype
     */
    private String propertytype;

    /**
     * wkt
     */
    @TableField(value = "ST_AsText(ST_StartPoint(shape))")
    private String startPoint;

    /**
     * wkt
     */
    @TableField(value = "ST_AsText(ST_EndPoint(shape))")
    private String endPoint;
}
